package com.zxn.ssyx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zxn.ssyx.mapper.SkuAttrValueMapper;
import com.zxn.ssyx.model.product.SkuAttrValue;
import com.zxn.ssyx.model.product.SkuImage;
import com.zxn.ssyx.service.SkuAttrValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SkuAttrValueServiceImpl extends ServiceImpl<SkuAttrValueMapper, SkuAttrValue> implements SkuAttrValueService {
    @Autowired
    private SkuAttrValueMapper skuAttrValueMapper;
    @Override
    public List<SkuAttrValue> selectBySkuId(Long id) {
        LambdaQueryWrapper<SkuAttrValue> lqw = new LambdaQueryWrapper<>();
        lqw.eq(SkuAttrValue::getSkuId,id);
        return skuAttrValueMapper.selectList(lqw);
    }
}
